<%@ Page Language="c#" Codebehind="rollBack.aspx.cs" MasterPageFile="../masterpages/umbracoDialog.Master"AutoEventWireup="True" Inherits="umbraco.presentation.dialogs.rollBack" %>
<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
<%@ Register TagPrefix="umb" Namespace="ClientDependency.Core.Controls" Assembly="ClientDependency.Core" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
  <script type="text/javascript">
  function doSubmit() {document.Form1["ok"].click()}

	  var functionsFrame = this;
	  var tabFrame = this;
	  var isDialog = true;
	  var submitOnEnter = true;
  </script>


  
  
  <style type="text/css">
	.propertyItemheader{width: 140px !Important;}
	.diff{margin-top: 10px; height: 100%; overflow: auto; border: 1px solid #ccc; font-family: verdana; font-size: 11px; padding: 5px;}
	.diff table td{border-bottom: 1px solid #ccc; padding: 3px;}
	.diff del{background: rgb(255, 230, 230) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;}
	.diff ins{background: rgb(230, 255, 230) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;}
	.diff .diffnotice{text-align: center; margin-bottom: 10px;}
		</style>
		</asp:Content>

<asp:Content ContentPlaceHolderID="body" runat="server">
	<umb:JsInclude ID="JsInclude1" runat="server" FilePath="js/umbracoCheckKeys.js" PathNameAlias="UmbracoRoot"/>

<cc1:Feedback ID="feedBackMsg" runat="server" />

	<cc1:Pane ID="pp_selectVersion" runat="server" Text="Select a version to compare with the current version">
	  <cc1:PropertyPanel id="pp_currentVersion" Text="Current version" runat="server"><asp:Literal ID="currentVersionTitle" runat="server"/> <small>(<asp:Literal ID="currentVersionMeta" runat="server"/>)</small></cc1:PropertyPanel> 
	  <cc1:PropertyPanel ID="pp_rollBackTo" Text="Rollback to" runat="server"><asp:DropDownList OnSelectedIndexChanged="version_load" ID="allVersions" runat="server" Width="400px" AutoPostBack="True" CssClass="guiInputTextTiny" /></cc1:PropertyPanel>
	  <cc1:PropertyPanel id="pp_view" Text="View" runat="server">
	      <small>
	          <asp:RadioButtonList ID="rbl_mode" runat="server" OnSelectedIndexChanged="version_load" RepeatDirection="Horizontal" >
	            <asp:ListItem Selected="True" Value="diff">Diff</asp:ListItem>
	            <asp:ListItem Value="html">Html</asp:ListItem>
	          </asp:RadioButtonList>
	      </small>
	  </cc1:PropertyPanel>
	</cc1:Pane>

  <asp:Panel ID="diffPanel" Visible="false" runat="server" Height="300px">
  <div class="diff">
      <div class="diffnotice">
      <p>
      <asp:Literal ID="lt_notice" runat="server" />
      </p>
      </div>
            
      <table border="0" style="width:95%;">
	       <asp:Literal ID="propertiesCompare" runat="server"></asp:Literal>
      </table>
  </div>
      
      <p style="width:95%;">
        <asp:Button ID="doRollback" runat="server" Enabled="False" OnClick="doRollback_Click"></asp:Button>
        &nbsp; <em><%=umbraco.ui.Text("general", "or", this.getUser())%></em> &nbsp;
        <a href="#" style="color: blue"  onclick="UmbClientMgr.closeModalWindow()"><%=umbraco.ui.Text("general", "cancel", this.getUser())%></a>
      </p>      
      </asp:Panel>
   
   
</asp:Content>
	